#include <iostream>
using namespace std;
int main()
{
    float k=1, s=10, p, day=10;
    cout<<"input P="; cin>>p;
    if (p>0&&p<=50)
  {
        while (s<=200)
        {
        day=day+(p*day/100);
        s+=day;
        k++;
        }
                cout<<"S="<< s <<endl;
                cout<<"K="<< k <<endl;
  }
    else {cout<<"error";}

}
